package com.zm.campus.pojo;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.ToString;

//公共返回对象的枚举类，里面主要包含状态码，成功 或 失败的信息等
@Getter
@AllArgsConstructor
@ToString
public enum RespBeanEnum {

    SUCCESS(200,"SUCCESS!"),
    NoLogin(300,"用户未登录！"),
    Lock15Min(301,"您的账户连续多次密码输入错误,被锁15分钟,剩余时间："),
    isOnline(302,"该用户已在线！"),
    //自定义注解的参数异常
    BIND_ERROR(5000,"参数校验异常"),
    //登录模块
    LoginVoNotNull(5010,"学号或密码不能为空！"),
    UserIdError(5010,"学号不正确或未注册！"),
    PassWordError(5011,"密码有误！请重新输入"),
    //注册模块
    RegisterFail(5020,"注册异常！请再试一次"),
    RegisterNotNull(5020,"请把注册必填项填完整！"),
    TwoPassWordNotSame(5020,"新密码与旧密码不一样！"),
    UserAlreadyExists(5020,"用户已存在！"),
    PhoneIncorrect(5020,"手机号格式不正确！"),
    EmailIncorrect(5020,"邮箱格式不正确！"),
    RegisterIdNotTrue(5020,"学号在 5 到 12 位之间"),
    SchoolIsNull(5020,"学校未加盟！"),

    //树洞模块
    GetTreeHoleNull(5030,"获取树洞列表失败！"),
    CommentNotNull(5030,"评论的内容不能为空！"),
    TreeHoleNoTExist(5030,"该树洞已被删除或不存在"),
    GoodsPointNotLess0(5030,"树洞点赞数不能小于0！"),
    ReleaseUserIsNotExist(5030,"发布者不存在！"),
    THIsAudited(5030,"有树洞已审核过，请重新刷新！"),
    UserIsPoint(5030,"已点赞"),
    UserNotPoint(5030,"未点赞"),
    //CommentNotExist(5033,"当前"),

    //审核树洞模块
    AuditTreeHoleNotExist(5040,"待审核的树洞不存在！"),
    ReleaseUidNotNull(5040,"发布者不能为空！"),
    ReleaseTitleError(5040,"标题在2到10个字符之间！"),
    ReleaseContentError(5040,"内容不能为空！"),
    ReleaseUserNull(5040,"当前登录用户不存在！"),
    AuditIsDoing(5040,"您有已提交待审核树洞，请耐心等待管理员审核完成后才可继续发布"),
    AuditListIsNull(5040,"请选择要操作的 项 再进行操作！"),

    //代劳模块
    WayIsNotExist(5060,"请选择正确的代劳方式！"),
    selectIsPass(5060,"请选择是否通过！"),
    RDIsAudited(5060,"订单已审核过！请刷新一下！"),
    EndDateIsError(5060,"请选择当前时间后1个小时作为结束时间"),
    RDIsDelete(5060,"该代劳信息已被删除！"),
    ReceiveInfoNotNull(5060,"接单参数为空！请刷新重试或重新登录！"),
    RDIsReceived(5060,"抱歉手慢了一步，这个订单已经被其他人接了"),
    RDIsNotPass(5060,"订单状态不是待接单，不可进行接单操作！"),
    NotReceiveYourSelfRD(5060,"你不可接自己的订单！"),
    RDInfoIsOverdue(5060,"代劳信息已过期,请刷新重试"),
    RdTimeIsToShort(5060,"对不起，您的代劳截止时间过短，如有需要请重新发布！"),

    //我的交易
    LoginUserError(5070,"当前登录用户异常，请重新登录"),
    DoDealParamsNull(5070,"要操作的参数为空！请刷新重试或重新登录"),
    TradeIsNotExist(5071,"订单不存在！"),
    DoDealIsNoTrUser(5070,"不能操作其它人的订单！"),
    TradeIsSuccess(5072,"订单已完成，请勿重复操作"),
    TradeIsCancel(5072,"订单已取消，请勿重复操作"),


    //个人中心模块
    AvatarIsExist(5050,"头像相同，未改变。。"),
    AvatarToBigger(5050,"头像不能超过1.5M"),
    AvatarTypeError(5050,"头像格式不正确！"),
    UserAgeError(5050,"年龄填写不正确！"),
    SelectedDepart(5050,"请选择你的学院！"),
    AuthRoleNotChange(5050,"当前用户已经是这个角色！"),



    DeleteRDTask(5001,"定时器删除过期代劳信息失败，请看日志详情"),
    ParamsIsNull(5001,"数据有误！原因可能是：参数必填项为空！"),
    UserNotLogin(5001,"当前用户未登录！"),
    UserError(5001,"当前登录用户异常,请重新登录获取"),
    InsufficientAuthority(5001,"权限不足！"),
    UpdateError(5001,"更新失败！"),
    SystemBusy(501,"系统繁忙，请稍后再试！"),
    doServiceBusy(502,"操作频繁，请稍后再试！"),
    IOError(503,"输入输出流异常，请稍后重试！"),
    ERROR(500,"服务端异常");


    private final Integer code;
    private final String message;
}
